package cn.fl.repay.service;

import cmm.mid.core.framework.page.KeyValueVO;
import cn.fl.capital.constant.CapPayInfoConstant;
import cn.fl.framework.base.context.CurrentThreadContext;
import cn.fl.repay.vo.InsCstRepayLogVO;
import cn.fl.repay.condition.InsCstRepayLogQueryCondition;
import cn.fl.repay.dto.InsCstRepayLogDTO;
import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;
import cn.cmm.base.framework.constant.BaseExceptionConstant;

import java.util.List;

/**
 * @Description: 资管客户还款记录表 客户端服务层接口
 * 业务层方法名称前缀：
 * 新增：add*
 * 删除：remove*
 * 修改：modify*
 * 批量：batch*
 * 查询对象：select* get*
 * 查询集合：search*
 */
public interface IInsCstRepayLogService {
	
	/**
	 * 获取唯一对象
	 * @param id 主键
	 * @return 对象DTO
	 */
	public InsCstRepayLogVO selectById(Long id) throws BaseException;
	
	/**
	 * 新增
	 * @param entity
	 * @return
	 */
    public Long add(InsCstRepayLogVO entity) throws BaseException;
    
    /**
     * 批量删除
     * @param ids
     * @return
     */
    public boolean removeByIds(List<Long> ids) throws BaseException;

    /**
     * 修改
     * @param entity
     * @return
     */
    public boolean modify(InsCstRepayLogVO entity) throws BaseException;

    /**
     * 分页查询所有
     * @param page
     * @return
     */
    public Pager searchListPage(Pager page) throws BaseException;
    
    /**
     * 根据条件查询所有
     * @param condition
     * @return
     */
    public List<InsCstRepayLogVO> searchList(InsCstRepayLogQueryCondition condition) throws BaseException;

	/**
	 * 查询数据字典
	 * @param groupCd
	 * @return
	 * @throws BaseException
	 */
	public List<KeyValueVO> getKVList(String groupCd) throws BaseException;
}
